
package org.darcy.entity.business;

import java.io.Serializable;
import java.util.Date;

import org.darcy.entity.work.WorkFlowObject;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

@Schema(description="BusinessFinancialBill: 合同收款开票")
@TableName(value = "business_financial_bill")
@Getter
@Setter
public class BusinessFinancialBill extends WorkFlowObject  implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	@Schema(description="开票编号")
	@TableField(value = "`form_no`")
	private String formNo;
	
	@Schema(description="合同id")
	@TableField(value = "`contract_id`")
	private Integer contractId;
	
	@Schema(description="合同收款id")
	@TableField(value = "`received_id`")
	private String receivedId;
	
	@Schema(description="业务名称")
	@TableField(value = "`receipt_name`")
	private String receiptName;
	
	@Schema(description="开票金额")
	@TableField(value = "`receipt_amount`")
	private Float receiptAmount;
	
	@Schema(description="发票类型")
	@TableField(value = "`receipt_type`")
	private String receiptType;
	
	@Schema(description="发票抬头")
	@TableField(value = "`receipt_company`")
	private String receiptCompany;
	
	@Schema(description="备注")
	@TableField(value = "`receipt_remark`")
	private String receiptRemark;
	
	@Schema(description="创建时间")
	@TableField(value = "`create_time`")
	private Date createTime;
	
	@Schema(description="更新时间")
	@TableField(value = "`update_time`")
	private Date updateTime;
	
	@Schema(description="删除标识0：删除；1：存在")
	@TableField(value = "`del_flag`")
	private Integer delFlag;
	

	//扩展信息
	
	@Schema(description = "合同信息")
	@TableField(exist = false)
	private BusinessContract contract;
	
	@Schema(description = "发票信息")
	@TableField(exist = false)
	private BankInfo bankInfo;
	
}
